Sets or queries the debug level.
#Include <TaskScheduler.au3>
_TS_ErrorNotify($iDebug[, $sDebugFile = @ScriptDir & "\TaskScheduler_Debug.txt"])
Parameters
| $iDebug | Debug level. Allowed values are: -1 - Return the current settings 0 - Disable debugging 1 - Enable debugging. Output the debug info to the console 2 - Enable Debugging. Output the debug info to a MsgBox 3 - Enable Debugging. Output the debug info to a file defined by $sDebugFile 4 - Enable Debugging. The COM errors will be handled (the script no longer crashes) without any output |
| $sDebugFile | [optional] File to write the debugging info to if $iDebug = 3 (Default = @ScriptDir & "TaskScheduler_Debug.txt") |
Return Value
Success (for $iDebug => 0): 1, sets @extended to:
Remarks
None.
Related